package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_DTF_LOG"
 *     
*/
public class CcpDtfLog implements Serializable {

    /** identifier field */
    private String cdlGuid;

    /** persistent field */
    private String opType;

    /** nullable persistent field */
    private String startTime;

    /** nullable persistent field */
    private String endTime;

    /** nullable persistent field */
    private String opState;

    /** nullable persistent field */
    private String opUser;

    /** persistent field */
    private String fileName;

    /** nullable persistent field */
    private String fileSize;

    /** nullable persistent field */
    private byte[] opLog;

    /** persistent field */
    private String opService;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpDtfLog(String cdlGuid, String opType, String startTime, String endTime, String opState, String opUser, String fileName, String fileSize, byte[] opLog, String opService, String reserved1, String reserved2, String reserved3) {
        this.cdlGuid = cdlGuid;
        this.opType = opType;
        this.startTime = startTime;
        this.endTime = endTime;
        this.opState = opState;
        this.opUser = opUser;
        this.fileName = fileName;
        this.fileSize = fileSize;
        this.opLog = opLog;
        this.opService = opService;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpDtfLog() {
    }

    /** minimal constructor */
    public CcpDtfLog(String cdlGuid, String opType, String fileName, String opService) {
        this.cdlGuid = cdlGuid;
        this.opType = opType;
        this.fileName = fileName;
        this.opService = opService;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CDL_GUID"
     *         
     */
    public String getCdlGuid() {
        return this.cdlGuid;
    }

    public void setCdlGuid(String cdlGuid) {
        this.cdlGuid = cdlGuid;
    }

    /** 
     *            @hibernate.property
     *             column="OP_TYPE"
     *             length="2"
     *             not-null="true"
     *         
     */
    public String getOpType() {
        return this.opType;
    }

    public void setOpType(String opType) {
        this.opType = opType;
    }

    /** 
     *            @hibernate.property
     *             column="START_TIME"
     *             length="20"
     *         
     */
    public String getStartTime() {
        return this.startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    /** 
     *            @hibernate.property
     *             column="END_TIME"
     *             length="20"
     *         
     */
    public String getEndTime() {
        return this.endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    /** 
     *            @hibernate.property
     *             column="OP_STATE"
     *             length="2"
     *         
     */
    public String getOpState() {
        return this.opState;
    }

    public void setOpState(String opState) {
        this.opState = opState;
    }

    /** 
     *            @hibernate.property
     *             column="OP_USER"
     *             length="50"
     *         
     */
    public String getOpUser() {
        return this.opUser;
    }

    public void setOpUser(String opUser) {
        this.opUser = opUser;
    }

    /** 
     *            @hibernate.property
     *             column="FILE_NAME"
     *             length="300"
     *             not-null="true"
     *         
     */
    public String getFileName() {
        return this.fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    /** 
     *            @hibernate.property
     *             column="FILE_SIZE"
     *             length="20"
     *         
     */
    public String getFileSize() {
        return this.fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    /** 
     *            @hibernate.property
     *             column="OP_LOG"
     *             length="2147483647"
     *         
     */
    public byte[] getOpLog() {
        return this.opLog;
    }

    public void setOpLog(byte[] opLog) {
        this.opLog = opLog;
    }

    /** 
     *            @hibernate.property
     *             column="OP_SERVICE"
     *             length="32"
     *             not-null="true"
     *         
     */
    public String getOpService() {
        return this.opService;
    }

    public void setOpService(String opService) {
        this.opService = opService;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="100"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="200"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cdlGuid", getCdlGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpDtfLog) ) return false;
        CcpDtfLog castOther = (CcpDtfLog) other;
        return new EqualsBuilder()
            .append(this.getCdlGuid(), castOther.getCdlGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCdlGuid())
            .toHashCode();
    }

}
